﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.IO;

namespace KeyboardImageViewer
{
    /// <summary>
    /// Interaction logic for Welcome.xaml
    /// </summary>
    public partial class Welcome : Window
    {
        public Welcome()
        {
            InitializeComponent();
        }

        public DirectorySet SourceDirectories
        {
            get
            {
                return this.multiFolderPicker.DirectorySet;
            }
        }

        private void okButton_Click(object sender, RoutedEventArgs e)
        {
            if (this.multiFolderPicker.HasDirectories)
            {
                this.DialogResult = true;
            }
            else
            {
                MessageBox.Show("You must pick at least one directory.");
            }
        }
    }
}
